package com.erp.service.impl;

import com.erp.entity.Input;
import com.erp.entity.vo.InputVO;
import com.erp.mapper.InputMapper;
import com.erp.service.InputService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Service
public class InputServiceImpl implements InputService {

    @Autowired
    private InputMapper inputMapper;
    
    @Override
    public List<InputVO> getAll() {
        return inputMapper.getAll();
    }

    @Override
    public int add(Input input) {
        return inputMapper.add(input);
    }

    @Override
    public int delete(Integer id) {
        return inputMapper.delete(id);
    }

    @Override
    public int update(Input input) {
        return inputMapper.update(input);
    }
}
